package com.lwj.servletAPI;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class SpringBeanTest {
    public static void main(String[] args) {
        //创建一个spring容器，，测试
        ApplicationContext app=new ClassPathXmlApplicationContext("applicationContext.xml");
        Cat cat = app.getBean("cat", Cat.class);
        cat.run();
    }
}
